package com.ksm.client;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.core.shared.GWT;
import com.google.gwt.user.client.ui.FlowPanel;
import com.google.gwt.user.client.ui.RootLayoutPanel;
import com.google.gwt.user.client.ui.Widget;
import com.mvp4g.client.Mvp4gModule;

/**
 * Entry point classes define <code>onModuleLoad()</code>.
 */
public class Manager implements EntryPoint {
	/**
	 * The message displayed to the user when the server cannot be reached or
	 * returns an error.
	 */
	private static final String SERVER_ERROR = "An error occurred while " + "attempting to contact the server. Please check your network " + "connection and try again.";

	/**
	 * Create a remote service proxy to talk to the server-side Greeting
	 * service.
	 */

	// private final Messages messages = GWT.create(Messages.class);

	/**
	 * This is the entry point method.
	 */
	@Override
	public void onModuleLoad() {

		// Mvp4gModule module = (Mvp4gModule) GWT.create(Mvp4gModule.class);
		// module.createAndStartModule();
		// RootPanel.get().add((Widget) module.getStartView());

		// DocumentGridView tabs = new DocumentGridView();
		// RootPanel.get().add(tabs);

		// Main tabs = new Main();
		// RootPanel.get().add(tabs);

		Mvp4gModule module = (Mvp4gModule) GWT.create(Mvp4gModule.class);
		module.createAndStartModule();

		FlowPanel fp = new FlowPanel();

		fp.add((Widget) module.getStartView());
		fp.setStyleName("center");

		RootLayoutPanel.get().add(fp);
	}
}
